<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox-content">
					<form class="form-horizontal m-t" id="signupForm">
						<input id="orgId" th:value="${doctor.orgId}" name="orgId" type="hidden">
						    <input id="orgName" th:value="${doctor.orgName}" name="orgName" type="hidden">
						    <input id="subjectName" th:value="${doctor.doctorName}"  name="subjectName" type="hidden">
						    <input id="doctorId" th:value="${doctor.doctorId}"  name="doctorId" type="hidden">
						    <input id="subjectCode" th:value="${doctor.subjectCode}" name="subjectCode" type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">医师姓名：</label>
								<div class="col-sm-8">
									<input id="doctorName" th:value="${doctor.doctorName}" name="doctorName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">性别:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{doctor.sex}" name="sex" value="男" /> 男
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{doctor.sex}" name="sex" value="女" /> 女
									</label>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">所属组织机构：</label>
								<div class="col-sm-8">
									<div id="menuTree"></div>
								</div>
							</div> 
							<div class="form-group">
								<label class="col-sm-3 control-label">所属医学科目：</label>
								<div class="col-sm-8">
									<div id="subjectTree"></div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">职称代码：</label>
								<div class="col-sm-8">
									<input id="titleCode" th:value="${doctor.titleCode}" name="titleCode" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">职称名称：</label>
								<div class="col-sm-8">
									<input id="titleName" th:value="${doctor.titleName}" name="titleName" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">身份证号：</label>
								<div class="col-sm-8">
									<input id="personId" th:value="${doctor.personId}" name="personId" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">注册证号：</label>
								<div class="col-sm-8">
									<input id="empno" th:value="${doctor.empno}" name="empno" class="form-control"
										type="text">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">联系电话：</label>
								<div class="col-sm-8">
									<input id="phone" th:value="${doctor.phone}" name="phone" class="form-control"
										type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">参加工作时间：</label>
								<div class="col-sm-8">
								    <input type="text" th:value="${doctor.entryJobDate}" id="entryJobDate" name="entryJobDate" class="form-control">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">生日：</label>
								<div class="col-sm-8">
								    <input type="text" id="birth" th:value="${doctor.birth}" name="birth" class="form-control">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">地址：</label>
								<div class="col-sm-8">
								    <input type="text" id="address" th:value="${doctor.address}" name="address" class="form-control">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">擅长：</label>
								<div class="col-sm-8">
								    <input type="text" id="expertise" th:value="${doctor.expertise}" name="expertise" class="form-control">
								</div>
							</div>
							
							<div class="form-group">
								<label class="col-sm-3 control-label">问诊费：</label>
								<div class="col-sm-8">
								    <input type="number" id="inquiryFee" th:value="${doctor.inquiryFee}" name="inquiryFee" class="form-control">
								</div>
							</div>
							
						    <div class="form-group">
								<input id="content" th:value="${doctor.introduction}" name="introduction" type="hidden"> <label
									class="col-sm-1 control-label">简介：</label>
								<div class="col-sm-11">
									<div class="ibox-content no-padding">
										<div id="content_sn" class="summernote"></div>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态:</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{doctor.flag}" name="flag" value="1" /> 正常
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{doctor.flag}" name="flag" value="0" /> 禁用
									</label>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<input id="submit" class="btn btn-primary" name="submit" type="submit" value="提交" >
								</div>
							</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/org/doctor/edit.js">
	</script>
	<script src="/js/plugins/laydate/laydate.js"></script> 
</body>
<script>
laydate.render({
  elem: '#entryJobDate', //指定元素
  istoday: true,
  fixed: false,
  festival: true,
});
laydate.render({
  elem: '#birth', //指定元素
  istoday: true,
  fixed: false,
  festival: true,
});
</script>
</html>
